import request from "@/utils/requset"
//添加订单
export const createOrderAPI = (data)=>request.post('/order/add',data)
//查询订单详情
export const getOrderDetailAPI = (id)=>request.get(`/order/detail?orderId=${id}`)
//支付订单
export const payOrderAPI = (id)=>request.get(`/order/pay?orderId=${id}`)
//取消订单
export const cancelOrderAPI = (id)=>request.get(`/order/cancel?orderId=${id}`)
//获取订单列表
export const getOrderListAPI = (data,pageNo,pageSize)=>request.post(`/order/list?pageNo=${pageNo}&pageSize=${pageSize}`,data)